From: Matthieu Gallien Date: Fri, 3 Jan 2025 14:32:38 +0000 (+0100) Subject: force dehydratation of lnk files when vfs metadata are wrong X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~30^2^2~156^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3f4936171205aee9f56119e4127982d1bf8be314;p=nextcloud-desktop.git force dehydratation of lnk files when vfs metadata are wrong Close #7696 Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 927a248da..833e3ffa0 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1672,7 +1672,8 @@ void ProcessDirectoryJob::processFileFinalize( if (_discoveryData->_syncOptions._vfs && (item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) && item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE && - FileSystem::isLnkFile((_discoveryData->_localDir + path._local))) { + FileSystem::isLnkFile((_discoveryData->_localDir + path._local)) && + !_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) { item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_SYNC; item->_direction = SyncFileItem::Down; item->_type = CSyncEnums::ItemTypeVirtualFileDehydration;